package org.csu.mybigpro.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@TableName("user")
public class User {
    //自增
    @TableId(type = IdType.AUTO)
    private Long id;
    @NotBlank(message = "用户名不为空")
    private String username;
    @NotBlank(message = "密码不为空")
    private String password;
    private String name;
    private String email;
    private String phone;
    private String department;
    @TableField(value = "face_descriptor")
    private String faceDescriptor;
    private String avatarUrl;

}